
<div class="row">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sucursal-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->dropDownList(
			$model, 
			'producto',
			CHtml::listData(Producto::model()->findAll(array('order'=>'nombre','condition'=>'suspendido=0')),'idProducto','nombre'), 
			array(
										'prompt' => '-- Seleccione --',
										'ajax' => array(
														'type'=>'POST', 
														'url'=>CController::createUrl('otrorubro/getRubros'),
														'data' =>array('id'=>'js:$("#OtroRubro_producto").val()'),
														'update'=>'#dinamic',        

												)) ); ?>
	
												
	<?php $this->endWidget(); ?>
</div>
<div id="dinamic" class="row" style="margin-top: 20px;">
</div>
